package org.eiahe.hr.attendance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;

/**
 * 考勤人员类型对象 hr_attendance_type
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_attendance_type")
public class AttendanceType extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 考勤类型ID
     */
    @TableId(type = IdType.AUTO)
    private Long typeId;

    /**
     * 考勤类型名称
     */
    private String typeName;

    /**
     * 是否需要打卡(0-不需要 1-需要)
     */
    private String needPunch;



    /**
     * 允许打卡方式(多选,逗号分隔: 1-考勤机 2-APP 3-PC)
     */
    private String punchMethod;

    /**
     * 允许最早打卡时间(如06:00)
     */
    private String earliestPunchTime;
    /**
     * 允许最晚打卡时间(如23:59)
     */
    private String latestPunchTime;

    /**
     * 启用状态(0-停用 1-启用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    @TableLogic
    private String delFlag;
}
